﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 用户信息基础输入参数
    /// </summary>
    public class KerryplususerinfoBaseInput
    {
        /// <summary>
        /// UnionId
        /// </summary>
        public virtual string? UnionId { get; set; }
        
        /// <summary>
        /// OpenId
        /// </summary>
        public virtual string? OpenId { get; set; }
        
        /// <summary>
        /// AppId
        /// </summary>
        public virtual string? AppId { get; set; }
        
        /// <summary>
        /// BrandId
        /// </summary>
        public virtual string? BrandId { get; set; }
        
        /// <summary>
        /// LbsId
        /// </summary>
        public virtual string? LbsId { get; set; }
        
        /// <summary>
        /// 用户ID
        /// </summary>
        public virtual string? UserId { get; set; }
        
        /// <summary>
        /// 手机号
        /// </summary>
        public virtual string PhoneNumber { get; set; }
        
        /// <summary>
        /// 积分数
        /// </summary>
        public virtual decimal Currnentintegral { get; set; }
        
        /// <summary>
        /// 昵称
        /// </summary>
        public virtual string? NickName { get; set; }
        
        /// <summary>
        /// 今日签到
        /// </summary>
        public virtual bool TodaySign { get; set; }
        
        /// <summary>
        /// 会员号
        /// </summary>
        public virtual string? VipCode { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        public virtual int State { get; set; }
        
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public virtual DateTime LastTime { get; set; }
        
        /// <summary>
        /// Token
        /// </summary>
        public virtual string? Token { get; set; }
        
        /// <summary>
        /// RefreshToken
        /// </summary>
        public virtual string? RefreshToken { get; set; }
        
        /// <summary>
        /// Token更新时间
        /// </summary>
        public virtual DateTime? TokenUpdateTime { get; set; }
        
        /// <summary>
        /// 最后签到时间
        /// </summary>
        public virtual DateTime? LastSignDateTime { get; set; }
        
        /// <summary>
        /// 下次签到时间
        /// </summary>
        public virtual DateTime? NextSignDateTime { get; set; }
        
        /// <summary>
        /// 租户Id
        /// </summary>
        public virtual long? TenantId { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 用户信息分页查询输入参数
    /// </summary>
    public class PageKerryplususerinfoInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// UnionId
        /// </summary>
        public string? UnionId { get; set; }
        
        /// <summary>
        /// OpenId
        /// </summary>
        public string? OpenId { get; set; }
        
        /// <summary>
        /// AppId
        /// </summary>
        public string? AppId { get; set; }
        
        /// <summary>
        /// BrandId
        /// </summary>
        public string? BrandId { get; set; }
        
        /// <summary>
        /// LbsId
        /// </summary>
        public string? LbsId { get; set; }
        
        /// <summary>
        /// 用户ID
        /// </summary>
        public string? UserId { get; set; }
        
        /// <summary>
        /// 手机号
        /// </summary>
        public string? PhoneNumber { get; set; }
        
        /// <summary>
        /// 积分数
        /// </summary>
        public decimal? Currnentintegral { get; set; }
        
        /// <summary>
        /// 昵称
        /// </summary>
        public string? NickName { get; set; }
        
        /// <summary>
        /// 今日签到
        /// </summary>
        public bool? TodaySign { get; set; }
        
        /// <summary>
        /// 会员号
        /// </summary>
        public string? VipCode { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        public int? State { get; set; }
        
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastTime { get; set; }
        
        /// <summary>
         /// 最后修改时间范围
         /// </summary>
         public DateTime?[] LastTimeRange { get; set; } 
        /// <summary>
        /// Token
        /// </summary>
        public string? Token { get; set; }
        
        /// <summary>
        /// RefreshToken
        /// </summary>
        public string? RefreshToken { get; set; }
        
        /// <summary>
        /// Token更新时间
        /// </summary>
        public DateTime? TokenUpdateTime { get; set; }
        
        /// <summary>
         /// Token更新时间范围
         /// </summary>
         public DateTime?[] TokenUpdateTimeRange { get; set; } 
        /// <summary>
        /// 最后签到时间
        /// </summary>
        public DateTime? LastSignDateTime { get; set; }
        
        /// <summary>
         /// 最后签到时间范围
         /// </summary>
         public DateTime?[] LastSignDateTimeRange { get; set; } 
        /// <summary>
        /// 下次签到时间
        /// </summary>
        public DateTime? NextSignDateTime { get; set; }
        
        /// <summary>
         /// 下次签到时间范围
         /// </summary>
         public DateTime?[] NextSignDateTimeRange { get; set; } 
    }

    /// <summary>
    /// 用户信息增加输入参数
    /// </summary>
    public class AddKerryplususerinfoInput : KerryplususerinfoBaseInput
    {
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        public override string PhoneNumber { get; set; }
        
        /// <summary>
        /// 积分数
        /// </summary>
        [Required(ErrorMessage = "积分数不能为空")]
        public override decimal Currnentintegral { get; set; }
        
        /// <summary>
        /// 今日签到
        /// </summary>
        [Required(ErrorMessage = "今日签到不能为空")]
        public override bool TodaySign { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public override int State { get; set; }
        
        /// <summary>
        /// 最后修改时间
        /// </summary>
        [Required(ErrorMessage = "最后修改时间不能为空")]
        public override DateTime LastTime { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 用户信息删除输入参数
    /// </summary>
    public class DeleteKerryplususerinfoInput : BaseIdInput
    {
    }

    /// <summary>
    /// 用户信息更新输入参数
    /// </summary>
    public class UpdateKerryplususerinfoInput : KerryplususerinfoBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 用户信息主键查询输入参数
    /// </summary>
    public class QueryByIdKerryplususerinfoInput : DeleteKerryplususerinfoInput
    {

    }
